package com.wondersgroup.esclient.emen;

/**
 * ES范围（range）查询时，查询条件
 * gte-大于或等于    
 * gt-大于   
 * lte-小于或等于    
 * lt 小于
 * @author Walker
 *
 */
public enum QueryCondition {
	
	GTE("gte","大于或等于"),
	GT("gt","大于"),
	LTE("lte","小于或等于"),
	LT("lt","小于");

	private String code;
	private String value;

	QueryCondition(String code, String value) {
        this.code = code;
        this.value = value;
    }

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
}
